package com.aiti.lulian.mapper.gxmh;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.gxmh.dto.GxmhMessageUserDto;
import com.aiti.lulian.gxmh.entity.GxmhMessage;
import com.aiti.lulian.gxmh.entity.GxmhMessageUser;
import com.aiti.lulian.gxmh.vo.GxmhMessageUserVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GxmhMessageUserMapper extends SuperMapper<GxmhMessageUser> {

    List<GxmhMessageUserVo> selectMyMessageList(Page<GxmhMessage> page, @Param("dto") GxmhMessageUserDto dto);

    Integer selectUnreadCount(@Param("userId") String userId);

    void insertBatch(@Param("list") List<GxmhMessageUser> list);

    GxmhMessageUserVo selectMyMessageDetails(@Param("userId") String userId, @Param("messageId") String messageId);
}
